window.onload = function() {
	//验证码验证
	$('.register-btn').click(function() {
			var yzm = $('.yzm').val();
			//正则表达式
			var reg = /^[1-9]\d{5}$/
			var isValid = reg.test(yzm);

			if (isValid) {
				$('.site-yzm').css('display', 'none');
				location.assign('http://127.0.0.1:8848/mi/center.html')
			} else {
				$('.site-yzm').css('display', 'block');
			}
	});
	
	//返回
	$('.register-bt').click(function () {
		location.assign('http://127.0.0.1:8848/mi/register.html')
	});

}


